float r = random(100);
if (r < 50.0) {
  line(0, 0, 100, 100);
} else {
  ellipse(50, 50, 75, 75);
}